package com.hetongxue.system.controller;

import com.hetongxue.response.Result;
import com.hetongxue.system.service.ClassifyService;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 分类控制器
 * @ClassNmae: ClassifyController
 * @Author: 何同学
 * @DateTime: 2022-05-10 20:25
 **/
@RestController
@RequiredArgsConstructor
@Api("分类模块")
public class ClassifyController {

    private final ClassifyService classifyService;

    /**
     * 获取分类信息
     **/
    @GetMapping("/getClassify")
    public Result getClassify() {
        return Result.Success(classifyService.getClassify());
    }

}
